﻿using SqlSugar;
using Digitalmes.Domain.Repositories;

namespace Digitalmes.Infrastructure.Data;

/// <summary>
/// 工作单元。
/// </summary>
internal sealed class UnitOfWork : IUnitOfWork
{
    private readonly SugarUnitOfWork _unitOfWork;

    public UnitOfWork(SugarUnitOfWork unitOfWork)
    {
        _unitOfWork = unitOfWork;
    }

    public void Commit()
    {
        _unitOfWork.Commit();
    }
}
